﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Facility
/// </summary>
public class Facility:ServiceObject
{

	/// <summary>
    /// Fields of Facility
    /// </summary>
    #region Fields
    FacilityType type;
    decimal price;   
    decimal discount;
    int quantity;
    int avalability;
    #endregion

    /// <summary>
    /// Properties of Facility
    /// </summary>
    #region Properties
    public FacilityType Type
    {
        get { return type; }
        set { type = value; }
    }
    public decimal Price
    {
        get { return price; }
        set { price = value; }
    }
    public decimal Discount
    {
        get { return discount; }
        set { discount = value; }
    }
    public int Quantity
    {
        get { return quantity; }
        set { quantity = value; }
    }
    public int Availability
    {
        get { return avalability; }
        set { avalability = value; }
    }
    #endregion

    /// <summary>
    /// Constructures Facility
    /// </summary>
    #region Constructures
    public Facility()
    {
        type = new FacilityType();
        price = 0;
        discount = 0;
        quantity = 0;
        avalability = 0;
    }
    public Facility(FacilityType type, decimal price, decimal discount)
	{
        this.type = type;
        this.price = price;
        this.discount = discount;
        this.quantity = 0;
        this.avalability = 0;
    }
    #endregion
}